package com.huopaolan.yohuoshop.Di.Modules;

import com.huopaolan.yohuoshop.Mvp.Contract.HomeContract;
import com.huopaolan.yohuoshop.Mvp.Model.HomeModel;

import dagger.Module;
import dagger.Provides;

/**
 * HomeModules HomeActivity下需要注入的presenter的仓库
 */
@Module
public class HomeModules {
    private HomeContract.IHomeView iHomeView;

    public HomeModules(HomeContract.IHomeView iHomeView) {
        this.iHomeView = iHomeView;
    }

    @Provides
    public HomeContract.IHomeView providerIHomeView() {
        return iHomeView;
    }

    @Provides
    public HomeContract.IHomeModel providerIHomeModel() {
        return new HomeModel();
    }
}
